# def amt_input():
#     print('哈哈！')
#
# def add(x, y):
#     res= x + y
#     print(res)
#
# add(1, 3)
# add(10, 100)
#
# def ceshi(x, y):
#     return x*y
# print(ceshi(10,100))

# def func1():
#     pass
#
# def func2():
#     pass
#
# def func3():
#     pass
# def func(x, y):
#     print(x, y)
#
# func(1, 2)·

# def func(x, y=3):
#     print(x,y)
#
# func(x=3)
# li = 1.01 ** 365
# print(li)
#
# # 牛逼
# def zhuce(a:0, b:1):
#     if a == 13 and b == 16:
#         print('你也是牛逼')
#     else:
#         print('牛逼')
# 必须先定义形参，再默认形参
# def func(x,y,z=111, *args, g, **kwargs):
#     print(x)
#     print(y)
#     print(args)
#     print(g)
#     print(kwargs)
#
# func(x=1,y=2,g=3)

# def func() -> object:
#     print(x)
# x = 11
# func()

# 示范二:名称空间的嵌套关系
x = 1


def func():
    print(x)


def foo():
    x = 222
    print(x)


foo()
